﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="edit.aspx.cs" Inherits="He.Web.manage.product.edit"
    ValidateRequest="false" %>

<%@ Register Src="../_uc/head_edit.ascx" TagPrefix="uc" TagName="head_edit" %>
<%@ Register Src="../_uc/head.ascx" TagPrefix="uc" TagName="head" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>编辑内容</title>
    <uc:head runat="server" ID="uchead" />
    <uc:head_edit runat="server" ID="uchead_edit" />
    <script type="text/javascript" src="../js/upload.js"></script>
    <script src="/plug/my97datepicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="back"><a href="list.aspx?channel_id=<%=channel_id %>">返回列表</a></span><b>您当前的位置：首页
            &gt;
            <%=channel.manage_title%>
            &gt;编辑内容</b>
    </div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                编辑内容
            </th>
        </tr>
        <tr>
            <td width="15%" align="right">
                名称
            </td>
            <td width="85%">
                <asp:TextBox ID="txtTitle" runat="server" CssClass="input w380 required" MaxLength="250"
                    HintTitle="发布的标题" HintInfo="控制在100个字数内，标题文本尽量不要太长。"></asp:TextBox>
                <span id="upordown" class="up-02">显示高级选项</span>
            </td>
        </tr>
        <tr class="upordown hide">
            <td align="right">
                SEO关键字
            </td>
            <td>
                <asp:TextBox ID="txtSeoKeywords" runat="server" CssClass="input w380" MaxLength="100"
                    HintTitle="SEO关键字" HintInfo="用于搜索引擎，控制在100个字数内，如有多个关健字请用英文的,号分隔，不填写将自动提取。"></asp:TextBox>
            </td>
        </tr>
        <tr class="upordown hide">
            <td align="right">
                SEO描述
            </td>
            <td>
                <asp:TextBox ID="txtSeoDescription" runat="server" CssClass="textarea wh380" MaxLength="250"
                    HintTitle="SEO描述" HintInfo="用于搜索引擎，控制在200个字数内，不填写将自动提取。" TextMode="MultiLine"></asp:TextBox>
            </td>
        </tr>
        <tr style="display: none">
            <td align="right">
                价格
            </td>
            <td>
                <asp:TextBox ID="txtPrice" runat="server" CssClass="input required number" size="10"
                    MaxLength="10" HintTitle="产品所涉及的价格" HintInfo="货币格式如“150.5”,单位为元，0代表暂无价格。">0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                所属分类
            </td>
            <td>
                <asp:DropDownList ID="ddlcategory_id" CssClass="required select" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td align="right">
                图片
            </td>
            <td>
                <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left"></asp:TextBox>
                <a href="javascript:void(0);" class="files">
                    <input type="file" name="FileUpload" id="FileUpload" /></a> <span class="uploading">
                        正在上传，请稍候...</span>&nbsp;<font color="#ff0000">最佳比例：<%=channel.img_width + ":" + channel.img_height%></font>
                <img src="../images/loading.gif" style="display: none;" id="idProcess" />
                <%if (action == He.Web.UI.Enums.ActionEnum.Edit.ToString())
                  { %>
                <input name="album_parent_id" type="hidden" value="<%=this.id %>" />
                <%} %>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                <div id="show_list">
                    <ul>
                        <asp:Literal ID="LitImgGroup" runat="server"></asp:Literal>
                    </ul>
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" id="field_tab_content" runat="server" visible="false" border="0"
        cellspacing="0" cellpadding="0" class="msgtable">
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <td align="right" valign="top" width="15%">
                详细介绍
            </td>
            <td>
                <textarea id="txtContent" style="visibility: hidden;" runat="server"></textarea>
            </td>
        </tr>
        <tr>
            <td align="right">
                外链地址：
            </td>
            <td>
                <asp:TextBox ID="txtLinkUrl" runat="server" CssClass="input w380 url" MaxLength="250"
                    HintTitle="该网站的网址" HintInfo="请填写该网站的网址，以“http://”开头，小于250个字符。"></asp:TextBox><br />若需跳转到其他页面，请填写该项
            </td>
        </tr>
        <tr>
            <td align="right">
                产品属性
            </td>
            <td>
                <asp:CheckBox ID="chkRed" runat="server" Text="推荐" />
                <asp:CheckBox ID="chkHot" runat="server" Text="热门" />
                <asp:CheckBox ID="chkLock" runat="server" Text="隐藏" />
            </td>
        </tr>
        <tr>
            <td align="right">
                浏览次数：
            </td>
            <td>
                <asp:TextBox ID="txtClick" runat="server" CssClass="input required number" size="10"
                    MaxLength="10" HintTitle="浏览次数" HintInfo="纯数字，本文章被阅读的次数。">0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                排序：
            </td>
            <td>
                <asp:TextBox ID="txtSortId" runat="server" CssClass="input required number" size="10"
                    MaxLength="10" HintTitle="排序数字" HintInfo="纯数字，越小越向前。">0</asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                发布日期：
            </td>
            <td>
                <asp:TextBox ID="txtAddTime" runat="server" CssClass="dateISO Wdate required" size="10"
                    MaxLength="10" onfocus="WdatePicker()"></asp:TextBox>
                <%if (action == He.Web.UI.Enums.ActionEnum.Add.ToString())
                  {
                %>
                <script type="text/javascript">
                    $(function () {
                        $("#txtAddTime").val('<%=DateTime.Now.ToString("yyyy-MM-dd") %>');
                    })                 
                </script>
                <%
                    } %>
            </td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确 认 保 存" CssClass="submit" OnClick="btnSave_Click" />
    </div>
    </form>
</body>
</html>
